Skip to content

Conversation

@adamjstewart
Copy link

Reverts #199
Fixes #200

PEP 621 is superseded by PEP 639. The previous syntax is deprecated and will be removed in a future version of setuptools.

@Bluefissure @EpicWink @mattip

@EpicWink
Copy link

You may want to add license-files = ["LICENSE"] to keep the license explicitly referenced (setuptools still includes the license file in the sdist and wheels anyway)

@adamjstewart
Copy link
Author

The default value of license-files seems to include this. We can make it more explicit if we want.

@adamjstewart
Copy link
Author

Two 👍, just waiting on a review from someone with merge privileges...

adamjstewart and others added 3 commits December 7, 2025 09:56
Co-authored-by: Dimitri Papadopoulos Orfanos <[email protected]>
Co-authored-by: Dimitri Papadopoulos Orfanos <[email protected]>
readme = "README.md"
license = { file = "LICENSE" }
license = "MIT-0 AND MIT"
license-files = ["LICENSE", "src/c/libffi_x86_x64/LICENSE"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds the license for libffi_x86_64. Is this part of the wheel for all platform or just x86_64?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment, license-files cannot be configured dynamically, it must be the same for all platforms: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#dynamic-metadata. Whether or not the license for libffi should be included or excluded is another question.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are also from-source builds that will not bundle libffi at all.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's distributed with the source dist, isn't it? I would therefore argue the package should reference that licence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

license in pyproject.toml is not following the PEP 621

4 participants